<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="IValidatorListener,mx.validators.IValidatorListener,errorString,validationSubField,validationResultHandler" name="keywords">
<title>mx.validators.IValidatorListener</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'IValidatorListener - Zentrum virtUOS: virtPresenter';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">virtPresenter AsDoc</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?mx/validators/IValidatorListener.html&amp;mx/validators/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Interface&nbsp;IValidatorListener</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Interface IValidatorListener"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mx.validators</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Interface</td><td class="classSignature">public interface IValidatorListener</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implementors</td><td><a href="../core/UIComponent.html">UIComponent</a></td>
</tr>
</table>
<p></p>
  The interface that components implement to support
  the Flex data validation mechanism. 
  The UIComponent class implements this interface.
  Therefore, any subclass of UIComponent also implements it.
 <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#errorString">errorString</a> : String<div class="summaryTableDescription">
      The text that will be displayed by a component's error tip when a
      component is monitored by a Validator and validation fails.</div>
</td><td class="summaryTableOwnerCol">IValidatorListener</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#validationSubField">validationSubField</a> : String<div class="summaryTableDescription">
   Used by a validator to assign a subfield.</div>
</td><td class="summaryTableOwnerCol">IValidatorListener</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#validationResultHandler()">validationResultHandler</a>(event:<a href="../events/ValidationResultEvent.html">ValidationResultEvent</a>):void</div>
<div class="summaryTableDescription">
   Handles both the <code>valid</code> and <code>invalid</code> events
   from a  validator assigned to this component.</div>
</td><td class="summaryTableOwnerCol">IValidatorListener</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="errorString"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">errorString</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>errorString:String</code>&nbsp;&nbsp;[read-write]<p>
      The text that will be displayed by a component's error tip when a
      component is monitored by a Validator and validation fails.
           </p><p>You can use the <code>errorString</code> property to show a 
      validation error for a component, without actually using
   a validator class. 
      When you write a String value to the <code>errorString</code> property, 
      Flex draws a red border around the component to indicate
   the validation error, and the String appears in a tooltip
   as the validation error message when you move  the mouse over
   the component, just as if a validator detected a validation error.</p>
           <p>To clear the validation error, write an empty String, "", 
      to the <code>errorString</code> property.</p>
           <p>Note that writing a value to the <code>errorString</code> property 
      does not trigger the valid or invalid events; it only changes the 
      border color and displays the validation error message.</p>
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get errorString():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set errorString(value:String):void</code>
<br>
</div>
<a name="validationSubField"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">validationSubField</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>validationSubField:String</code>&nbsp;&nbsp;[read-write]<p>
   Used by a validator to assign a subfield.
  </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get validationSubField():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set validationSubField(value:String):void</code>
<br>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="validationResultHandler()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">validationResultHandler</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function validationResultHandler(event:<a href="../events/ValidationResultEvent.html">ValidationResultEvent</a>):void</code><p>
   Handles both the <code>valid</code> and <code>invalid</code> events
   from a  validator assigned to this component.  
     </p><p>You typically handle the <code>valid</code> and <code>invalid</code>
   events dispatched by a validator by assigning event listeners
   to the validators. 
   If you want to handle validation events directly in the component
   that is being validated, you can override this method
   to handle the <code>valid</code> and <code>invalid</code> events.
   From within your implementation, you can use the
   <code>dispatchEvent()</code> method to dispatch the 
   <code>valid</code> and <code>invalid</code> events
   in the case where a validator is also listening for them.</p>
     <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">event</span>:<a href="../events/ValidationResultEvent.html">ValidationResultEvent</a></code> &mdash; The event object for the validation.
           </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../events/ValidationResultEvent.html" target="">mx.events.ValidationResultEvent</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
